package com.marry.shirodemo.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ml
 * @create 2017-11-04--16:21
 */
@Controller
@RequestMapping("/userInfo")
public class UserInfoController {

    /**
     * 用户查询
     * @return
     */
    @RequestMapping("/userList")
    public String userInfo(){
        return "userInfo";

    }
    @RequestMapping("/userAdd")
    @RequiresPermissions({"userInfo:add"})
    public String userInfoAdd(){
        return "userInfoAdd";
    }

    @RequestMapping(value = "/userDel")
    @RequiresPermissions("userInfo:del")
    public String userInfoDel(){
        return "userInfoDel";
    }
}
